package com.github.baichuan.application.scaffold.dto.tenant;

import com.github.baichuan.mapping.Mapping;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;

@Schema(title = "租户表单")
@Getter
public class TenantForm {
    @Schema(title = "租户名称")
    @NotBlank(message = "租户名称不能为空")
    @Size(max = 32, message = "租户名称最多32个字符")
    @Mapping
    private String name;
}
